<template>
	<div class="backtop" @click="backtop">
	
	</div>
</template>
<!--回到顶部图标组件-->
<script>
export default {
	name: "backTop",
	setup(props, {emit}) {
		
		return {
			backtop() {
				emit('bTop')
			}
		}
	}
}
</script>

<style scoped>
.backtop {
	background: url("~images/scroll-to-top-icon.png") no-repeat center center;
	width: 30px;
	height: 30px;
	position: fixed;
	bottom: 80px;
	right: 20px;
	z-index: 10;
	border-radius: 50%;
	/*box-shadow: 5px 5px 5px #2c3e50;*/
}
</style>